<template>
    <div class="box">
        <el-container>
            <!-- 侧边栏 -->
            <sidebar></sidebar>
            <el-container>
                <!-- 头部 -->
                <el-header>
                    <headers></headers>
                </el-header>
                <!-- 身体部分 -->
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
import sidebar from '@/views/Home/sidebar.vue';
import headers from '@/views/Home/headers.vue';
export default {
  components: {
    sidebar,
    headers
  }
};
</script>

<style scoped>
.box {
  height: 100%;
}
.el-container {
  min-height: 100%;
}
.el-header {
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  background: #fff;
}
.el-container {
  min-height: 100%;
}
</style>
